package com.wh.minihelp.user.domain;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import com.wh.db.domain.IDBase;
import com.wh.web.util.lang.StringUtil;

/**
 * 小孩信息
 * 
 * @author washheart@163.com
 */
public class ChildInfo extends IDBase {
	/**
	 * 家庭id
	 */
	private String familyId;
	/**
	 * 小孩名称
	 */
	private String name;

	/**
	 * 头像路径
	 */
	private String photo;

	/**
	 * 小孩年龄
	 */
	private int age;

	/**
	 * 性别
	 */
	private int sex;
	/**
	 * 小孩得到的总红花数（含已扣除的）
	 */
	private int totals;

	/**
	 * 小孩已经用掉的红花数
	 */
	private int used;

	/**
	 * 备注
	 */
	private String remark;

	/**
	 * 创建时间
	 */
	private Date createDate;
	private int recordCount;

	public Map<String, Object> toMap() {
		Map<String, Object> m = new HashMap<String, Object>();
		m.put("id", id);
		m.put("familyId", familyId);
		m.put("name", name);
		m.put("photo", photo);
		m.put("age", age);
		m.put("sex", sex);
		m.put("totals", totals);
		m.put("createDate", StringUtil.format(createDate));
		m.put("used", used);
		m.put("remark", remark);
		m.put("recordCount", recordCount);
		return m;
	}

	public String getFamilyId() {
		return familyId;
	}

	public void setFamilyId(String familyId) {
		this.familyId = familyId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public int getTotals() {
		return totals;
	}

	public void setTotals(int totals) {
		this.totals = totals;
	}

	public int getUsed() {
		return used;
	}

	public void setUsed(int used) {
		this.used = used;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public int getRecordCount() {
		return this.recordCount;
	}

	public void setRecordCount(int recordCount) {
		this.recordCount = recordCount;
	}
}